package com.example.communist_app_api.db.pojoDto;

import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * comment
 * @author 
 */
@Data
public class Comment implements Serializable {
    /**
     * 主键
     */
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 文章id
     */
    private Integer articleId;

    /**
     * 审核员id，也是user_id
     */
    private Integer auditorId;

    /**
     * 评论内容
     */
    private String context;

    /**
     * 点赞数量
     */
    private Integer likeNum;

    /**
     * 创建时间
     */
    private Long createdTime;

    /**
     * 更新时间
     */
    private Long updatedTime;

    /**
     * 子评论
     */
    private List<UserSoncomment> userSoncomments;

    /**
     * 是否点赞
     * @return
     */
    private Boolean like;

    /**
     * 用户名称
     * @return
     */
    private String name;

    /**
     * 用户头像
     * @return
     */
    private String photo;

    /**
     * 用户所在组织
     * @return
     */
    private String organizationName;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getOrganizationName() {
        return organizationName;
    }

    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
    }

    public Boolean getLike() {
        return like;
    }

    public void setLike(Boolean like) {
        this.like = like;
    }

    public List<UserSoncomment> getUserSoncomments() {
        return userSoncomments;
    }

    public void setUserSoncomments(List<UserSoncomment> userSoncomments) {
        this.userSoncomments = userSoncomments;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public Integer getAuditorId() {
        return auditorId;
    }

    public void setAuditorId(Integer auditorId) {
        this.auditorId = auditorId;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    /**
     * 是否删除(0-未删, 1-已删)
     */


    private Byte isDeleted;

    private static final long serialVersionUID = 1L;
}